package model.item;

import model.entity.Entity;
import model.stats.StatsPersistMods;

public class Weapon extends InventoryItem {

	private StatsPersistMods statMods;
	
	public Weapon(Integer value, String name, StatsPersistMods statMods) {
		super(value, name);
		this.statMods =statMods;
	}

	public void setStatMod(StatsPersistMods statMods){
		this.statMods =statMods;
	}
	
	public StatsPersistMods getStatMods(){
		return this.statMods;
	}
	
	
	
	@Override
	public void use(Entity entity) {
		entity.equipWeapon(this);

	}

	public static Weapon getDefaultWeapon() {
		return new Weapon(0, "Fists", new StatsPersistMods());
	}
}
